package pdn.sci.cs.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import pdn.sci.cs.dao.DivisionalSecretariatDao;
import pdn.sci.cs.entity.DevisionalSecretariat;

@Service
public class DivisionalSecretariatService {
	
	@Autowired private DivisionalSecretariatDao DivisionalSecretariatDao;
	
	public List<DevisionalSecretariat> findAll() {
		return DivisionalSecretariatDao.findAll();
	}
	
	public DevisionalSecretariat findById(String id) {
		return DivisionalSecretariatDao.findById(id);
	}
	
	public DevisionalSecretariat save(DevisionalSecretariat d) {
		return DivisionalSecretariatDao.save(d);
	}
	
	public void update(DevisionalSecretariat d) {
		DivisionalSecretariatDao.update(d);
	}

	public List<DevisionalSecretariat> findByDistrictId(String districtId) {
		return DivisionalSecretariatDao.findByDistrictId(districtId);
	}
}
